package com.cloud.neo4j.business.neo4j.car.controller;

import com.cloud.neo4j.business.neo4j.car.service.IPersonRelationShipService;
import com.cloud.neo4j.common.response.ResponseBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * 关系扩展
 * @date 2022-05-26
 * @author 刘房
 */
@RestController
public class PersonRelationShipController {

    @Autowired
    private IPersonRelationShipService personRelationShipServiceImpl;

    /**
     * 查询关系实体
     * @param name  人员名称
     * @param type  关系类型
     * @param number    关系指数
     * @return ResponseBean
     */
    @GetMapping("/relation/ship")
    public ResponseBean getPersonRelationShipEntityAll(@RequestParam(required = false) String name
            , @RequestParam(required = false)  String type
            , @RequestParam(required = false) Integer number){
        return ResponseBean.getResultsSuccess(personRelationShipServiceImpl.getPersonRelationShipEntityAll(null,null,0));
    }
}
